// createRouter 创建路由实例对象
// createWebHistory 创建history路由模式 (hash/ history)
import { createRouter, createWebHistory } from 'vue-router'
import BigScreen from '../views/BigScreen.vue'
const router = createRouter({
  // 默认是 /
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      redirect: '/big-screen',
      name: 'home',
    },
    {
      path: '/big-screen',
      name: 'bigScreen',
      component: BigScreen
    }
  ]
})

export default router
